package com.zs.admin.validate.wisdbook;

import com.zs.common.validator.annotation.IDMust;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 资源参数
 * @author SwAdmin
 */
@Data
@ApiModel("资源更新参数")
public class WisdbookResourceUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Integer id;

    @ApiModelProperty(value = "资源类型：1富文本  2文档 3图片 4视频  5音频  6题目")
    private Integer type;

    @ApiModelProperty(value = "资源标题")
    private String title;

    @ApiModelProperty(value = "资源内容")
    private String content;

    @NotNull(message = "linkType参数缺失")
    @ApiModelProperty(value = "link类型   0:mark  1:dir")
    private Integer linkType;

    @NotNull(message = "linkId参数缺失")
    @ApiModelProperty(value = "linkId")
    private String linkId;

}
